<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>%VITE_APP_TITLE%</title>
    <link rel="icon" href="/风车.svg" />
    <style>
      body, html {
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        overflow: hidden;
      }

      .back-button {
        position: absolute;
        top: 75%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 8px 24px;
        background-color: #000;
        color: #00bcd4;
        border: 2px solid #00bcd4;
        border-radius: 8px;
        font-size: 16px;
        cursor: pointer;
        z-index: 10;
      }

      .back-button:hover {
        background-color: #66b1ff;
        color:#ffffff
      }
    </style>
  </head>
  <body>
    <div id="404" style="width: 100%; height: 100%; overflow: hidden; position: relative;">
      <img src="./src/assets/error-page/404.png" alt="404页面" style="width: 100%; height: 100%; object-fit: cover;">
      <button class="back-button" onclick="goHome()">返回首页</button>
    </div>

    <script>
      function goHome() {
        window.location.href = "/";
      }
    </script>
  </body>
</html>
